<template>
	<component :is="map.get($props.name)" />
</template>
<script setup>
	import dataManage from './dataManage.vue'
	import menuManage from './menuManage.vue'
	import userManage from './userManage.vue'
	import toolManage from './toolManage.vue'
	import settingsManage from './settingsManage.vue'

	defineProps({ name: String })
	const map = new Map([
		['data-manage', dataManage],
		['menu-manage', menuManage],
		['user-manage', userManage],
		['tool-manage', toolManage],
		['settings-manage', settingsManage]
	])
</script>
